#pragma once

#include <QDialog>

namespace Ui {
    class LogonWindow;
}

// 登录窗口
class LogonWindow: public QDialog {
    Q_OBJECT

    public: enum ClickedButton {
        CANCEL,
        OK
    };

    private: Ui::LogonWindow* ui;           // 界面
    private: ClickedButton mClickedButton;  // 用户单击的按钮
    private: QString mPassword;             // 密码
    private: QString mUsername;             // 用户名

    public: explicit LogonWindow(QWidget*);
    public: ~LogonWindow();
    public: const char* getPassword();
    public: const char* getUsername();
    private slots: void on_buttonCancel_clicked();
    private slots: void on_buttonOK_clicked();
};
